﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using YSC_Services.BLL.Services.Interfaces;

namespace YSC_Backstage_Web.Controllers
{
    /// <summary>
    /// 塘口鱼价_走势报表
    /// </summary>
    public class PlaceOfOriginPriceReportController : Controller
    {
        private IBasisBackstageServices _rep;

        public PlaceOfOriginPriceReportController(IBasisBackstageServices rep)
        {
            this._rep = rep;
        }

        public IActionResult List()
        {
            return View();
        }

        /// <summary>
        /// 塘口鱼价_走势报表
        /// </summary>
        /// <param name="fishName">鱼种</param>
        /// <param name="province">省份</param>
        /// <param name="city">城市</param>
        /// <param name="type">报表类型:0一周，1三月2一年</param>
        /// <returns></returns>
        public JsonResult GetPlaceOfOriginPriceTrendReport(string fishName, string province, string city, int type)
        {
            var ret = _rep.GetPlaceOfOriginPriceTrendReport(fishName, province, city, type);
            return Json(ret);
        }
    }
}